﻿using AnesSystem.Models;
using AnesSystem.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.ViewModels
{
    class ConfigDrugMethodsDataGridViewModel : BaseViewModel<ConfigDrugMethodsDataGridViewModel>
    {
        #region Variables

        private ObservableCollection<ConfigDrugMethodsModel> _configDrugMethodsModel = new ObservableCollection<ConfigDrugMethodsModel>();

        #endregion

        #region Constructor

        public ConfigDrugMethodsDataGridViewModel()
        {
            initConfigDrugMethodsModel();
        }

        #endregion

        #region Properties

        public ObservableCollection<ConfigDrugMethodsModel> ConfigDrugMethodsModel
        {
            get
            {
                return _configDrugMethodsModel;
            }

            set
            {
                _configDrugMethodsModel = value;
                RaisePropertyChanged("ConfigDepartmentsModels");
            }
        }

        #endregion

        #region Event

        #endregion

        #region Private Methods
        private void initConfigDrugMethodsModel()
        {
            IEnumerable<ConfigDrugMethodsModel> list = ConfigDrugMethodsService.Instance.FindAll();
            foreach (var item in list)
            {
                _configDrugMethodsModel.Add(item);
            }
        }

       
        #endregion

        #region Public/Protected Methods


        #endregion

        #region EventHandlers

        #endregion

        #region Command

        #region ChangeDoctorCommand

        #endregion

        #region OpenPopupCommand

        #endregion
        #endregion

    }
}
